/**
 * Description:
 * Class Name:SleepTest
 * Date:2022/5/6 10:26
 *
 * @author LTisme
 * @version JAVA17
 */
package 疯狂Java讲义.第16章_多线程._16_4_控制线程._16_4_3_线程睡眠or阻塞_sleep;

import java.util.Date;

public class SleepTest {
    public static void main(String[] args) throws Exception{
        for (int i = 0; i < 10; i++) {
            System.out.println("当前时间：" + new Date());
            // 让当前线程阻塞1s
            Thread.sleep(1000);
        }
    }
}
